-- GENERATED SPELL FOR [Hemet Nesingwary] --


function spell0_28451(pUnit, Event) --@Arcane Shot,n/a--
pUnit:FullCastSpellOnTarget(51742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28451', 0, 1)
end

function spell1_28451(pUnit, Event) --@Trigger Missile: Immolation Trap,n/a--
pUnit:FullCastSpellOnTarget(51741,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_28451', 638, 1)
end

function Sorts_28451(pUnit, Event)
local choix_sorts_28451 = math.random(0, 1)
if choix_sorts_28451 == 0 then
pUnit:RegisterEvent('spell0_28451', 1, 1)
end
if choix_sorts_28451 == 1 then
pUnit:RegisterEvent('spell1_28451', 1, 1)
end
end

function mob28451_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_28451', math.random(1500, 3000), 1)
end

function mob28451_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28451_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob28451_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(28451, 1, 'mob28451_Action')
RegisterUnitEvent(28451, 2, 'mob28451_Leave')
RegisterUnitEvent(28451, 3, 'mob28451_Kill')
RegisterUnitEvent(28451, 4, 'mob28451_Die')
